package com.cta.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApplicationInitService {

	private static CodeLookupService codeLookupService;

	@Autowired(required = true)
	public void setCodeLookupService(CodeLookupService codeLookupService) {
		ApplicationInitService.codeLookupService = codeLookupService;
	}

	public static void init() {
		codeLookupService.initPbxs();
		codeLookupService.initTrunks();
		//load config and start jms container
		codeLookupService.initConfig();
		codeLookupService.initServerConfig();
	}
}
